import numpy as np
import matplotlib.pyplot as plt
import matplotlib

matplotlib.rcParams['font.family'] = 'LiSu'
# matplotlib.rcParams['font.size'] = 20

x = np.arange(0, np.pi * 3, 0.1)
y_sin = np.sin(x)
y_cos = np.cos(x)

plt.plot(x, y_sin)
plt.plot(x, y_cos)
plt.xlabel(u"X轴")
plt.ylabel(u"Y轴")
plt.title(u"正弦和余弦")
plt.legend([u"正弦", u"余弦"])
plt.show()
